var app = getApp()
Page({
  data: {
    userInfo: {},
    shopName:'',
    qrcodephoto:'',
    res:'',
    author: 'Lotus'
  },
  onShareAppMessage: function () {
    return {
      title: app.globalData.shopName,
      path: '/pages/index/index?fromInviteCode=' + app.globalData.myInviteCode,  
      success: function (res) {
        //console.log("转发成功");
      }
    }
  },  
  onLoad: function (options) {
    var that = this;
    if (options.fromInviteCode) {
      app.globalData.fromInviteCode=options.fromInviteCode;
    }
    app.appstart();
    that.setData({ userInfo:app.globalData.userInfo })
    that.setData({shopName: app.globalData.shopName  })
  }
})